package com.taotaojs.myboot.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.taotaojs.mybootsuper.bean.BaseBean;
import lombok.*;

import javax.persistence.Table;
import java.util.Date;

/**
 * @author: TaoTaojs
 * @Date: 2019/3/13 23:26
 * @Description:
 * oracle测试实体类
 * @关联类:
 * @参考链接：
 */
@Table(name = "tb_demo")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Builder
@EqualsAndHashCode(callSuper = false)
public class DemoOracleBean extends BaseBean {

    private String mstype;
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date subTime;
    private String orgAddr;
    private String destAddr;
    private String content;
    private Integer mszt;

    public Date getSubTime(){
        if(this.subTime != null) {
            return (Date) this.subTime.clone();
        }
        return null;
    }
    public void setSubTime(Date date){
        if(date != null) {
            this.subTime = (Date) date.clone();
        }
    }

}
